


/**
 * 设置App字体大小
 */
import 'package:flustars/flustars.dart';
import 'package:flutter/material.dart';
import 'package:moonplay/common/common_size.dart';


class FontSizeProvide with ChangeNotifier{
  double textSize = AppSize.appBaseSize;
  

  //设置app字体大小
  setAppSize(double fontSize){
    textSize = fontSize;
    double storageAppSize = fontSize;
    SpUtil.putDouble('storageAppSize', storageAppSize);
    notifyListeners();
  }

  /**
   * 初始化APP字体大小
   */
  initAppSize(){
    textSize = SpUtil.getDouble('storageAppSize');
    notifyListeners();
  }
}